package com.killer_jin.core.common.config;

import com.killer_jin.core.common.interceptor.VersionInterceptor;
import org.apache.ibatis.plugin.Interceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MybatisConfig {

    // 添加乐观锁处理插件
    @Bean
    public Interceptor versionInterceptor() {
        return new VersionInterceptor();
    }
}
